<?php



//Shows a celltype using the general view listview pathway.  
$query = "SELECT id AS \"CellTypeID\", Name, Species, isPrimary, Media, Culture, ThawTechnique FROM CellType";

if ($_GET['CellTypeID'] != "") {
		$query .= " WHERE id = " . $_GET['CellTypeID'];
}
$linkArray = array('CellTypeID' => 'Home.php');
$result = mysql_query($query);
$line = mysql_fetch_array($result, MYSQL_ASSOC);
$_POST['1']['Name'] = $line['Name'];
$_POST['1']['Species'] = $line['Species'];
$_POST['1']['isPrimary'] = $line['isPrimary'];
$_POST['1']['Media'] = $line['Media'];
$_POST['1']['Culture'] = $line['Culture'];
$_POST['1']['ThawTechnique'] = $line['ThawTechnique'];
require('./View/EditCellType.php');

?>
<?php require('./View/Footer.php'); ?>